/*******************************************************************
 *   > File Name: isalnum.c
 *   > Author: fly
 *   > Mail: lf.ye@samoon.net
 *   > Create Time: 2021-05-06  4/18  11:46:37 +0800
 *================================================================*/

#include <stdio.h>
#include <ctype.h>

int main(int argc, char* argv[])
{
    char str[]="123c@#$%QGaadfb";
    printf("str: %s\n", str);

    int i;
    for(i = 0; str[i] != 0; i++)
    {
        if (isalnum(str[i]))
        {
            printf("%c is an alphanumeric character.\n", str[i]);
        }
    }

    return 0;
}
